<!DOCTYPE HTML>
<html manifest="" lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>Health</title>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
    <style type="text/css">

        html, body {
            height: 100%;
            /*  background-color: #1985D0;*/
            background: url(resources/images/bg.png);
        }

        #appLoadingIndicator {
            position: absolute;
            top: 50%;
            margin-top: -15px;
            text-align: center;
            width: 100%;
            height: 30px;
            -webkit-animation-name: appLoadingIndicator;
            -webkit-animation-duration: 0.5s;
            -webkit-animation-iteration-count: infinite;
            -webkit-animation-direction: linear;
        }

        #appLoadingIndicator > * {
            background-color: #FFFFFF;
            display: inline-block;
            height: 30px;
            -webkit-border-radius: 15px;
            margin: 0 5px;
            width: 30px;
            opacity: 0.8;
        }

        @-webkit-keyframes appLoadingIndicator {
            0% {
                opacity: 0.8
            }
            50% {
                opacity: 0
            }
            100% {
                opacity: 0.8
            }
        }
    </style>

    <!-- The line below must be kept intact for Sencha Command to build your application -->
    
    <script id="microloader" type="text/javascript" src=".sencha/app/microloader/development.js"></script>
</head>
<body>
<div id="appLoadingIndicator">
    <div></div>
    <div></div>
    <div></div>
</div>
</body>
<script type="text/javascript">
    var Global = {
//        api_url: 'http://health.xayoudao.com',
        api_url:"http://testhealth.xayoudao.com",
        app_id: '1',
        app_title: 'Health',
        d_w: document.body.clientWidth,
        d_h: document.body.clientHeight
    };

    var cordova = {exec: function (s, e, n, f, p) {
        console.log('call in ' + n + '.' + f + '(' + p + ')');
    }}
    
    gotoFn = function () {
        var l = arguments.length;
      
        var activeItem = Ext.Viewport.getActiveItem(),
                requestItem = l == 1 ? arguments[0] : getPreviousItem(),//1
                directionStr = l == 1 ? "left" : "right";//2
        if (l != 1) {
            Ext.Viewport.animateActiveItem(requestItem, {type: "slide", direction: directionStr,listeners:{
                animationend: function (slide) {
                    Ext.Viewport.remove(activeItem, true);
                }
            }});
        }else{
            Ext.Viewport.animateActiveItem(requestItem, {type: "slide", direction: directionStr});            
            return false;
        }
    }
    localSave = function (key, value) {
        localRemove(key);
        localStorage.setItem(key, value);
    }
    localGet = function (key) {
        return localStorage.getItem(key);
    }
    localRemove = function (key) {
        localStorage.removeItem(key);
    }
    getPreviousItem=function () {
         var innerItems = Ext.Viewport.getInnerItems();
         return innerItems[innerItems.length - 2];
     }
</script>
 <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=69ded0fbe1c5b68f1ddc628eb58dfbe2"></script>
    <script type="text/javascript" src="http://developer.baidu.com/map/jsdemo/demo/convertor.js"></script>
</html>
